import { legacy_createStore, combineReducers } from "redux";
// 引入reducer
import { CollapsedReducer } from "./reducer/CollapsedReducer";
import { LoadingReducer } from "./reducer/LoadingReducer";

// 利用 combineReducers 方法将两个 reducer 合并起来
const reducer = combineReducers({
    CollapsedReducer,
    LoadingReducer
})


// 创建store仓库
const store = legacy_createStore(reducer)

export default store